#!/bin/csh -f

if (! -e max2) then
    mkdir max2
endif

set mp2_edif_list  

foreach arg  ($argv)
  set mp2_edif_list = ($mp2_edif_list $arg)
  if ("$arg" =~ max2/*) then
     set outfile=$arg 
  endif 
end

edifneto $mp2_edif_list
chlpmpty $outfile
unset mp2_edif_list
